I want a utility that converts my JAVA Code in to DXL before executing it with DXL Server Engine. |
Re: Did anyone try converting JAVA code in to DXL DOORS
Obviously something like a Java->DXL converter is not possible. Java has so many features that DXL does not have, these are so different languages, that to even think about the existence of a tool like that.
class DOORSObject { // wrap a DOORS object
// ...
// ... lots of stuff goes here
// ...
}
DOORSObject DOORSObject::createBelowObject (DOORSObject x) {
int oNr = x.AbsoluteNumber;
string strDxl = "Object x = create below object( " + oNr.ToString() + " ); setOleResult x.AAbsNo \"\""
com.DOORS.runDXL strDXL
int newObjectNr = com.DOORS.getOleResult().ToInt()
DOORSObject result = new DOORSObject(newObjectNr);
return (result);
}
|
Re: Did anyone try converting JAVA code in to DXL DOORS Mathias Mamsch - Wed Mar 17 14:04:58 EDT 2010
Obviously something like a Java->DXL converter is not possible. Java has so many features that DXL does not have, these are so different languages, that to even think about the existence of a tool like that.
class DOORSObject { // wrap a DOORS object
// ...
// ... lots of stuff goes here
// ...
}
DOORSObject DOORSObject::createBelowObject (DOORSObject x) {
int oNr = x.AbsoluteNumber;
string strDxl = "Object x = create below object( " + oNr.ToString() + " ); setOleResult x.AAbsNo \"\""
com.DOORS.runDXL strDXL
int newObjectNr = com.DOORS.getOleResult().ToInt()
DOORSObject result = new DOORSObject(newObjectNr);
return (result);
}
Regards, Mathias |